<%@ Page Language="VB" AutoEventWireup="false" MasterPageFile="~/Admin/admin.master" CodeFile="SpecialFieldsListItems.aspx.vb" Inherits="SpecialFieldsListItems" Title="Admin - Special Field List Items" %>
<%@ Register Assembly="InputControls" Namespace="InputControls" TagPrefix="cc2" %>
<%@ Register Src="SubNavControls/FieldsSubNavControl.ascx" TagName="FieldsSubNavControl" TagPrefix="uc1" %>


<asp:Content ID="Content1" ContentPlaceHolderID="contentPlaceHolder2" runat="server">
<uc1:FieldsSubNavControl ID="SubNavCtrl" runat="server" />
<asp:ObjectDataSource ID="SpecialFieldListObjectDataSource" runat="server" DataObjectTypeName="Cdm.DataCore.Admin.AdminSpecialFieldListItems"
            DeleteMethod="RemoveInstance" InsertMethod="SaveInstance" SelectMethod="ListByField"
            TypeName="Cdm.DataCore.Admin.AdminSpecialFieldListItems" UpdateMethod="UpdateInstance" SortParameterName="sortExpr">
            <SelectParameters>
                <asp:QueryStringParameter Name="fieldId" QueryStringField="fieldid" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
        
<table cellpadding="0" cellspacing="0">
<tr><td style="width:20px;" rowspan="5"></td>
<td><h1><a id="pagecontent">Admin - Special Field List Items</a></h1></td></tr>
  <tr><td><cc2:ValidationErrorSummary ID="ErrorSummary" runat="server" Message="" Visible="false" /></td></tr>
  <tr><td>
           <cc2:ScrollingGridView ID="SpecialFieldListScrollingGridView" runat="server" CssClass="gridOffsetSmall" Width="590px" CellPadding="5" ToolTip="165" 
            AutoGenerateColumns="False" DataSourceID="SpecialFieldListObjectDataSource" BorderColor="#21334B" BorderStyle="Solid" 
            GridLines="Vertical">
        <HeaderStyle CssClass="headerStyle" BackColor="#C3CAD4" BorderColor="#21334B" VerticalAlign="Top" />
        <RowStyle CssClass="columnStyle" />
        <Columns>
            <asp:TemplateField>
               <ItemStyle Width="0px" />
               <HeaderStyle Width="0px" />
                <EditItemTemplate>
                    <asp:TextBox Enabled="false" Visible="false" ID="EditFieldIdTextBox" runat="server" Text='<%# Bind("SpecialFieldId") %>' />
                </EditItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
            <ItemStyle Width="0px" />
               <HeaderStyle Width="0px" />
                <EditItemTemplate>
                    <asp:TextBox Enabled="false" Visible="false" ID="EditFieldListItemIdTextBox" runat="server" Text='<%# Bind("SpecialFieldListItemId") %>'/>
                </EditItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Field Value">
            <ItemStyle Width="300px" />
               <HeaderStyle Width="300px" />
                <ItemTemplate>
                    <asp:Label ID="EditFieldNameLabel" runat="server" Text='<%#Eval("FieldValue") %>'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="EditFieldNameTextBox" runat="server" Text='<%# Bind("FieldValue") %>' ToolTip="edit field value" />
                </EditItemTemplate>
            </asp:TemplateField>
            <asp:CommandField ShowEditButton="True" HeaderText="Action" AccessibleHeaderText="Action" HeaderStyle-Width="290px" ItemStyle-Width="260px" />
        </Columns>
           </cc2:ScrollingGridView>
        </td></tr>
        <tr><td><asp:FormView ID="SpecialFieldListFormView" runat="server" DataSourceID="SpecialFieldListObjectDataSource" BackColor="#FFFFFF" DataKeyNames="SpecialFieldID"
            DefaultMode="Insert" Font-Bold="True" Font-Names="Verdana"  ForeColor="White">
            <InsertItemTemplate>
                <table border="0" cellpadding="3" cellspacing="0">
                    <tr>
                        <td align="right"><asp:Label ID="FieldValueLabel" runat="server" AssociatedControlID="FieldValueTextBox" Text="New Value:" style="color:black;"></asp:Label></td>
                        <td><asp:TextBox ID="FieldValueTextBox" runat="server"></asp:TextBox></td>
                    </tr>
                </table>
            </InsertItemTemplate>
        </asp:FormView></td></tr>
        <tr><td align="center"><asp:Button ID="SaveButton" runat="server" Text="Save" />
        <asp:Button ID="CloseButton" runat="server" Text="Close" /></td></tr>
        </table>
</asp:Content>
<asp:Content ID="FixedContent" runat="server" ContentPlaceHolderID="ContentPlaceHolderFixedAdmin">
        
</asp:Content>